package com.ten.mall.mapper;

import com.ten.mall.vo.DianyuanOrderVo;
import com.ten.mall.vo.ItemOrder;
import com.ten.mall.vo.ItemOrderExample;
import com.ten.mall.vo.OrderReturnVo;
import com.ten.mall.vo.OrderVo;
import com.ten.mall.vo.TimeVo;
import com.ten.mall.vo.UserAnalysis;
import com.ten.mall.vo.YaopinSellResult;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

public interface ItemOrderMapper {
    int countByExample(ItemOrderExample example);

    int deleteByExample(ItemOrderExample example);

    int deleteByPrimaryKey(String id);

    int insert(ItemOrder record);

    int insertSelective(ItemOrder record);

    List<ItemOrder> selectByExample(ItemOrderExample example);

    ItemOrder selectByPrimaryKey(String id);

    int updateByExampleSelective(@Param("record") ItemOrder record, @Param("example") ItemOrderExample example);

    int updateByExample(@Param("record") ItemOrder record, @Param("example") ItemOrderExample example);

    int updateByPrimaryKeySelective(ItemOrder record);

    int updateByPrimaryKey(ItemOrder record);
    
    List<OrderReturnVo> selectByDefind(OrderVo vo);
    
    List<DianyuanOrderVo> selectByDianyuan(TimeVo vo);
    
    int updateYaodianKucun(Map<String,Integer> map);
    
    int updateByRefuse(Map<String,Integer> map);
    
    List<UserAnalysis> selectUserAnlaysizy(@Param("myDate") String myDate);
    
    List<YaopinSellResult> selectSumGoods(String myDate);
    
    List<OrderReturnVo> selectByDoctor(Map<String,String> map);
    
    List<OrderReturnVo> doctorSelectById(TimeVo vo);
    
    List<OrderReturnVo> selectByYaodian(Map<String,String> map);
    
    List<OrderReturnVo> selectBySaleMan(Map<String,String> map);
    
    List<OrderReturnVo> selectFenxiAll(Map<String,String> map);
}